﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace MedicalSelfserviceTerminals
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            this.tbHosName.Text = "   齐鲁医院自助终端";
    
        }

        private void Label_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            this.Close();
        }

        private void Label_MouseLeftButtonDown_1(object sender, MouseButtonEventArgs e)
        {
            TakeCardWindow from = new TakeCardWindow();
            if (from.ShowDialog() == true)
            {
                GetCardWindow frm = new GetCardWindow();
                frm.ShowDialog();
            }

        }

        private void Label_MouseLeftButtonDown_2(object sender, MouseButtonEventArgs e)
        {
            InsertCardUniversalWindow incard = new InsertCardUniversalWindow();
            if (incard.ShowDialog() == true)
            {
                RechargeWindow frm = new RechargeWindow();
                frm.ShowDialog();
            }
        }

        private void Label_MouseLeftButtonDown_3(object sender, MouseButtonEventArgs e)
        {
            InsertCardUniversalWindow incard = new InsertCardUniversalWindow();
            if (incard.ShowDialog() == true)
            {
              
            }
        }

        
   
    }
}
